#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
__title__ = ""
__author__ = "Administrator"
__mtime__ = "2016/6/17"
"""
#动态方法


class Province:

    def __init__(self,name,shenghui,shengzhang):
        self.Name = name
        self.Capital = shenghui
        self.Leader = shengzhang

     #动态方法


    def sports_meet(self):
        print self.Name + '正在开运动会'


hebei = Province('河北','石家庄','Tom')
shandong = Province('山东','济南','jon')

hebei.sports_meet()
shandong.sports_meet()
'''
输出结果：
河北正在开运动会
山东正在开运动会
'''

'''

sports_meet() 叫作动态方法，属于对象

对象可以访问动态方法。eg:hebei.sports_meet()

'''